getAge

abstract fun getAge(): Int

Gets the estimated age of the person whose face has been detected.

The estimation accuracy can vary based on the facial analysis algorithm and input quality. This is typically an apparent age rather than a precise actual age.

Return

The estimated age in years (e.g., 25), or a specific value (e.g., -1 or 0) if age estimation is unavailable or failed for this face.